<?php
/*
	用户端公共文件，访问用户端时默认加载
*/
defined('BY_JYA') or exit('error');
cfc('core')->checklogin();

if($_RQ['is_access']){
	//还不是经销商，跳转申请页
	$member=$this->get('member',array('mid'=>$_SESSION['uid']));
	if(!$member['is_agent'] || $member['stop'] || !$this->setting['level']){
		require('actions/apply.php');
		exit;
	}
	
}


